AnnieRoot.ui = AnnieRoot.ui || {};
ui.UserInfoManager = function () {
    var s = this;
    annie.Sprite.call(s);
    /*_a2x_need_start*/s.faceCon=null;s.gameTimesTxt=null;/*_a2x_need_end*/
    annie.initRes(s, "ui", "UserInfoManager");
    //your code here
    s.addEventListener(annie.Event.ADD_TO_STAGE, function (e) {
        s.gameTimesTxt.text = gameGlobalData.initGameData.gamesum;//显示用户的游戏次数
    });
    /*更新用户的游戏次数*/
    annie.globalDispatcher.addEventListener('updataUserGameTimes', function (e) {
        // trace('用户游戏次数：' + userGameTimes);
        var tempCount = parseInt(gameGlobalData.initGameData.gamesum);
        gameGlobalData.initGameData.gamesum = tempCount--;
        s.gameTimesTxt.text = gameGlobalData.initGameData.gamesum;
        // s.updateGameTimes(userGameTimes);
    })
};
A2xExtend(ui.UserInfoManager, annie.Sprite);
